<form name="search" method="post">
<input type="hidden" name="proc" value="graph" />
<table width="100%" border="0">
<tr>
    <td align="right" valign="top">Departemen : </td>
	<td>
		<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border:1px solid #3366CC;" bgcolor="#FFFFFF">
		<?php $DEP = departemen_select(false, "NAMA_DEPARTMENT ASC"); $row=true; ?>
		<?php while ($row):?>
		<tr <?php echo tag_zebra($z++)?>>
			<?php for($i=0; $i<3; $i++): ?>
			<?php if ($row = mysql_fetch_assoc($DEP)) : ?>
			<td>
			<input name="departemenID[]" type="checkbox" value="<?php echo $row['ID_DEPARTMENT']?>" onChange="load_graph($(this).getParent('form'))"/>
			<span class="marginL5"><?php echo $row['NAMA_DEPARTMENT']?></span>
			</td>
			<?php else: ?><td></td>
			<?php endif;?>
			<?php endfor;?>
		</tr>
		<?php endwhile; ?>
		</table>
	</td>
</tr>
<tr>
    <td align="right">Periode : </td>
    <td><input type="text" id="periode1" name="periode1" value="<?php echo time()?>" /> - <input id="periode2" name="periode2" type="text" value="<?php echo time()?>" /></td>
</tr>
</table>
</form>
<div align="center" id="graphContainer" style="margin-top:20px">
<img id="graph" />
</div>
